package com.njitzx.controller.test;

import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class HelloController {
    @Autowired
    private testService testService;
    @SneakyThrows
    @GetMapping("/hello")
    public String  asny(){
        System.out.println("hello world");
        testService.print();
        return "hello"+System.currentTimeMillis();
    }

}
